class UserRealtimeLocationModel {
  String name;
  String cityName;
  double lat;
  double lng;

  UserRealtimeLocationModel({this.name, this.cityName, this.lat, this.lng});

  UserRealtimeLocationModel.fromJson(Map<String, dynamic> json) {
    name = json['name']!=null?json['name']:'';
    cityName = json['cityName']!=null?json['cityName']:'';
    lat = json['lat'];
    lng = json['lng'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['cityName'] = this.cityName;
    data['lat'] = this.lat;
    data['lng'] = this.lng;
    return data;
  }
}